//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package messages;

import common.ByteStream;

public class StartSecureConnectionOK extends Base {
    public static final int MsgType = 20122;
    private String rc4KeyPart = null;
    private String appVersion = null;

    public StartSecureConnectionOK() {
        super(20122);
    }

    public void encode(ByteStream stream) {
    }

    public void decode(ByteStream stream) {
        this.rc4KeyPart = stream.readString();
        this.appVersion = stream.readString();
    }

    public String toString() {
        return "Server key part: " + this.rc4KeyPart + "\n Application Version: " + this.appVersion + "\n";
    }

    public String getServerSideKeyPart() {
        return this.rc4KeyPart;
    }
}
